package com.rd.student.jike.class4.wanghaixin.test0801;

import java.util.Arrays;

public class Test03 {
    public static void main(String[] args) {
        int arrays[] = {60,77,33,55,11,22,80};
        for (int j = 0; j < arrays.length; j++) {
            for (int i = 0; i < arrays.length-j-1; i++) {
                if(arrays[i]>arrays[i+1]){
                    int temp =  arrays[i+1];
                    arrays[i+1] = arrays[i];
                    arrays[i] = temp;
                }
            }
        }
        System.out.println(Arrays.toString(arrays));
    }
}
